﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCDonVi.ascx.cs" Inherits="AIC_PN.UCDonVi" %>
<div id="Div1" class="FormTitle" runat="server">
    <p class="TextTitle">
        Quản trị danh mục đơn vị
        <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
            Height="24px" OnClick="ImageButton1_Click" />
    </p>
</div>
<div class="FormMain">
    <div class="labelNotice">
        <label id="lblNotice" style="float: right; color: Red" runat="server">
            Hello</label>
    </div>
    <table>
        <tr>
            <td valign="top">
                <div class="Form Tree" style="height: 300px; overflow: scroll">
                    <asp:TreeView ID="trvDonVi" runat="server" OnTreeNodePopulate="trvDonVi_TreeNodePopulate"
                        OnSelectedNodeChanged="trvDonVi_SelectedNodeChanged">
                        <SelectedNodeStyle Font-Bold="True" />
                    </asp:TreeView>
                </div>
            </td>
            <td valign="top">
                <div class="Form Update" runat="server" id="formUpdate">
                    <asp:Button ID="btnThemMoi" runat="server" Text="Thêm mới vào đơn vị hiện tại" OnClick="btnThemMoi_Click"
                        CssClass="cmdBtn" CausesValidation="False" />
                    <table border="1px" class="ListForm">
                        <tr>
                            <td style="width: 100px">
                                Mã đơn vị
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaDonVi" runat="server" CssClass="InputText"></asp:TextBox>
                                <asp:RequiredFieldValidator ControlToValidate="txtMaDonVi" ID="txtMaDonViVal" runat="server"
                                    ErrorMessage="Vui lòng nhập mã đơn vị" CssClass="formValidate"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tên đơn vị
                            </td>
                            <td>
                                <asp:TextBox ID="txtTenDonVi" runat="server" CssClass="InputText"></asp:TextBox>
                                <asp:RequiredFieldValidator ControlToValidate="txtTenDonVi" ID="txtTenDonViVal" runat="server"
                                    ErrorMessage="Vui lòng nhập tên đơn vị" CssClass="formValidate"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Thông tin
                            </td>
                            <td>
                                <asp:TextBox ID="txtThongTin" runat="server" CssClass="InputText"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnLuu" runat="server" Text="Lưu lại" CssClass="cmdBtn" OnClick="btnLuu_Click" />
                                <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="cmdBtn" OnClick="btnHuy_Click"
                                    CausesValidation="False" />
                                <asp:Button ID="btnXoa" runat="server" Text="Xóa" CssClass="cmdBtn" OnClick="btnXoa_Click"
                                    CausesValidation="False" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</div>
